﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class SetGametypeAction : GameAction
    {
        GameSettings gameSettings;
        private View view;
        int gametypeOption;
        SoundEffectInstance sound;

        public SetGametypeAction(GameSettings gamesettings, int option, View targetView, SoundEffectInstance newSound)
        {
            this.gameSettings = gamesettings;
            view = targetView;
            this.gametypeOption = option;
            sound = newSound;
        }

        public override void doAction()
        {
            gameSettings.setGameType(gametypeOption);
            view.resetOptionsMenu();
            view.gotoStage((int)STAGES.GAME_OPTIONS);
            //sound.Play();
        }
    }
}